<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 th:text="${str}"></h1>
<div><img th:src="@{/images/g2.jpg}" alt="看不见？"></div>
</body>
</html>